<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="/struts-tags" prefix="s"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'index_right.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
	<script type="text/javascript" src="js/jquery.blockUI.js"></script> 
	<link rel="stylesheet" type="text/css" href="css/main.css"/>
	<SCRIPT type="text/javascript">
	$(document).ready(function(){
		$('input#checkAll').change(function(){
			$('input[name="checkboxToNot"]').each(function(){
				$(this).attr('checked',$('input#checkAll').attr('checked'));
			});
		});
		$('input#Togo').click(function(){
	  	  		var question = confirm("你确认要通过所选信息?");
		  	  	if(question!='0'){
	  	  	 	 	var userList = new Array();
	  	  		  	var num = 0;
					$('input[name="checkboxToNot"]').each(function(i){
						if($(this).attr('checked')){
							assetCardList[num++] = $(this).val();
						}
					});
					var url = "TogoAssetCard.action";
					if(assetCardList.length>=1){
						for(var z = 0; z < assetCardList.length;z++){
							if(z==0){
								url += "?assetCardId="+assetCardList[z];
							}else{
								url += "&assetCardId="+assetCardList[z];
							}
						}
					}
					location.href=url;
		  	  	}
	  		});
	});
	</SCRIPT>
  </head>
  <body>
       <div class="position" style="background-image:url(./images/login/position.png);height:34px;width:100%;padding:10px 0px 0px 20px;color:#000000;filter: DropShadow(Color=#000000, OffX=1, OffY=1, Positive=1);FONT-SIZE: 13px;">
              您当前的位置：首页
       </div>
      <div class="dataDivLeftHasTree">
<table class="gridTable" border="0" cellspacing="0" cellpadding="0">
	<tr>
		<td class="gridData">
		
    <table class="dataTable" border="0" cellpadding="0" cellspacing="1">
	          <tr class="dataHeader">
	          	<!-- 数据表头 -->
	            <td width="6%"><input id="checkAll" type="checkbox" name="check" value="checkbox" /></td>
	            <td width="12%">申报资产</td>
	            <td width="14%">申报方向</td>
	            <td width="37%">申报原因</td>
	            <td width="10%">申报部门</td>
	            <td width="10%">申报时间</td>
	          </tr>
	          <!-- 数据 -->
	        <s:iterator var="ass" value="acds">
	          <tr class="dataRow">
	            <td><input name="checkboxToNot" type="checkbox" value="" id="<s:property value="#ass.acid"/>" /></td>
	            <td><s:property value="#ass.acname"/></td>
	            <td><s:property value="#ass.depname"/></td>
	            <td><s:property value="#ass.reportreason"/></td>
	            <td><s:property value="#ass.reportdepartment"/></td>
	            <td><s:iterator var="d" value="acdbs"><s:if test="#ass.acid==#d.card.acid"><s:property value="#d.operatedate"/></s:if></s:iterator></td>
	          </tr>
	          </s:iterator>
			</table>
			</td>
			</tr>
	   <!-- 分页 -->
</table>
<input id="Togo" type="button" value="通过审核"/> <input id="ToBack" type="button" value="退回"/> 
        </div>
  </body>
</html>
